#include "ControlDigiCam.h"
#include "WPILib.h"

ControlDigiCam::ControlDigiCam() {
	// Use requires() here to declare subsystem dependencies
	Requires(digiCam);
}

// Called just before this Command runs the first time
void ControlDigiCam::Initialize() {
}

// Called repeatedly when this Command is scheduled to run
void ControlDigiCam::Execute() {
	
	float y = oi->getCameraYAxis();
	
	//SmartDashboard::PutDouble("Camera Y Axis", y);
	
	digiCam->setYAxis(y);
}

// Make this return true when this Command no longer needs to run execute()
bool ControlDigiCam::IsFinished() {
	return false;
}

// Called once after isFinished returns true
void ControlDigiCam::End() {
	
}

// Called when another command which requires one or more of the same
// subsystems is scheduled to run
void ControlDigiCam::Interrupted()  {
	
}
